#ifndef FRAGMENT_H
#define FRAGMENT_H

#include "FractureBody.h"
#include "PhysicsBody.h"
#include "ConvexHull.h"
#include "Matrix.h"

#include <vector>
#include <set>

class Fragment : public PhysicsBody, public FractureBody
{
public:
	Fragment(btRigidBody* rigidBody, btMotionState* motionState, const ConvexHull& hull, float volume, float materialDensity);
	void Collided(btManifoldPoint& contact);
	void Shatter();
	void Update();
	void Draw();
private:
	bool m_fractured;
	float m_volume;
	ConvexHull m_convexHull;
	Matrix m_mat;

	//std::vector<btVector3> m_points;
	
};

#endif